<meta meta="签到配置" args="data"/>
<style>

</style>
<form class="form-horizontal" id="form" s="form,datac,nda,valid" s-data="data" style="width: 600px;">
    <div class="form-group">
        <label class="col-sm-3 control-label">首次签到积分</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" min="0" class="form-control" name="firstSignIntegral" placeholder="首次签到积分"
                   s-valid-error="require(),min(0)"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">连续签到增量</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" min="0" class="form-control" placeholder="连续签到增量" name="increaseSignIntegral"
                   s-valid-error="require(),min(0)"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">邀请好友赠送积分</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" min="0" class="form-control" placeholder="邀请好友赠送积分" name="inviteEachUserIntegral"
                   s-valid-error="require(),min(0)"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">佣金结算获取积分</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" min="0" class="form-control" placeholder="佣金结算获取积分" name="commissionEachFeeIntegral"
                   s-valid-error="require(),min(0)"/>
            <div class="help-block">每一元获得多少积分</div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">每积分可兑换现金金额</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" min="0" class="form-control" placeholder="每积分可兑换现金金额" name="eachIntegralExchangeToMoney"
                   s-valid-error="require(),min(0)"/>
        </div>
    </div>
</form>
<script type="text/javascript">
    S.getContent = function () {
        var deferred = $.Deferred();
        $form.validate().done(function() {
            deferred.resolve(Smart.serializeToObject($form.node))
        })
        return deferred;
    }
</script>